<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .d1,.d2{
            display: inline-block;
        }
        .d1{
            margin-left: 20px;
            height: 200px;
            width: 200px;
            background:  pink;
            border-bottom: 1px dashed;
        }
        .d2{
            float: left;
            height: 100px;
            width: 100px;
            background:  blue;
        }
    </style>
</head>
<body>
    <div class="d1"></div>
    <div class="d2"></div>
</body>
</html>